package com.jolink.omiis.wechat.api;

/**
 * 智能机器人API
 * 
 * @author WangYanqing
 *
 * @param <T>
 */
public interface IRobotApi<T> extends IWeChatApiKeys {

	/**
	 * 机器人问答接口，调用机器人api，武寰坤提供机器人接口服务 由于现在接入的机器人由智能回复机器人、灵云机器人； 各提供返回报文不一样，区分处理
	 * 
	 * @param userId
	 * @param question
	 * @param conversationId
	 * @return
	 */
	T query(String userId, String msgType, String question, String conversationId, String channelId);

	/**
	 * @param userId
	 * @param question
	 * @param conversationId
	 * @param channelId
	 * @return
	 */
	T query2(String userId, String question, String conversationId, String channelId);

	T query2(String userId, String question, String conversationId, String channelId, String routingId);
	
	T query2(String userId,String openId, String question, String conversationId, String channelId, String routingId);

	T getConversationId(String userId, String greeting, String channelId);

	T queryRobotDetail(String userId, String conversationId, String channelId);

}
